﻿<UserControl x:Class="Skynet.C2SModule.Views.BookPrint.BookPrintView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:annot="clr-namespace:System.Windows.Annotations;assembly=PresentationFramework"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Loaded="UserControl_Loaded"
              Unloaded="UserControl_Unloaded">
    <Grid>
        <Grid.RowDefinitions >
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <Button  Style="{StaticResource ButtonStyle}"  Command="annot:AnnotationService.CreateInkStickyNoteCommand" CommandTarget="{Binding ElementName=dvBook}"> Annota</Button>
            <TextBlock Style="{StaticResource TextBlockStyle}">Books</TextBlock>
            <ComboBox 
                 Name="cbBooks"
                      Style="{StaticResource ComboBoxStyle}" 
                      ItemsSource="{Binding Books}"  
                      ItemTemplate="{StaticResource ComboBookTemplate}" 
                      IsSynchronizedWithCurrentItem="True" ></ComboBox>

          
        </StackPanel>
        <DocumentViewer Name="dvBook" Document="{Binding Document}" Grid.Row="1">

        </DocumentViewer>
    </Grid>
    
</UserControl>
